<?php
namespace App\Model;

class UserLog extends Model
{
    // 表名
    protected $table = 'user_log';
    
    // 保护属性
    protected $guarded = [];
    
    protected $dateFormat = 'U';
    
    const UPDATED_AT = null;
    
    // 用户
    public function user()
    {
        return $this->belongsTo(User::class, 'user_id');
    }
}